From 75c0b143920f3facc1e1b44b69f4a6a53ae7d87f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 28 Mar 1993 08:27:34 +0000 Subject: [PATCH] (command_loop_1): Clear force_start of selected_window after reading each key sequence. --- src/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 468d9703fe0..2f8689ef13e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -957,6 +957,11 @@ command_loop_1 () last_command_char = keybuf[i - 1]; + /* If the previous command tried to force a specific window-start, + forget about that, in case this command moves point far away + from that position. */ + XWINDOW (selected_window)->force_start = Qnil; + cmd = read_key_sequence_cmd; if (!NILP (Vexecuting_macro)) { -- 2.30.2